# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='GroupRoleRel',
            fields=[
                ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
                ('groupId', models.IntegerField(db_index=1)),
                ('roleId', models.IntegerField(db_index=1)),
                ('isActive', models.IntegerField(default=1)),
                ('isdefault', models.IntegerField(default=1)),
            ],
        ),
        migrations.CreateModel(
            name='Role',
            fields=[
                ('roleId', models.AutoField(primary_key=True, serialize=False)),
                ('roleName', models.CharField(max_length=128, null=0)),
                ('key', models.CharField(max_length=32, unique=1)),
                ('url', models.CharField(max_length=128, unique=1)),
                ('isActive', models.IntegerField(default=1)),
                ('classStyle', models.CharField(max_length=128)),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('userId', models.AutoField(primary_key=True, serialize=False)),
                ('userName', models.CharField(db_index=True, max_length=32, unique=1)),
                ('passWord', models.CharField(max_length=128)),
                ('email', models.EmailField(max_length=128)),
                ('isActive', models.IntegerField(default=1)),
                ('isSuper', models.IntegerField(default=0)),
            ],
        ),
        migrations.CreateModel(
            name='UserGroup',
            fields=[
                ('groupId', models.AutoField(primary_key=True, serialize=False)),
                ('groupName', models.CharField(max_length=128, unique=1)),
                ('isActive', models.IntegerField(default=1)),
            ],
        ),
        migrations.CreateModel(
            name='UserGroupRel',
            fields=[
                ('id', models.AutoField(auto_created=True, verbose_name='ID', serialize=False, primary_key=True)),
                ('groupId', models.IntegerField(db_index=1)),
                ('userId', models.IntegerField(db_index=1)),
                ('isActive', models.IntegerField(default=1)),
            ],
        ),
    ]
